<include file="public@header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:url('notice/index')}">公告通知</a></li>
			<li><a href="{:url('notice/add')}">新增通知</a></li>
		</ul>
        <form class="well form-inline margin-top-20" method="get" action="{:url('notice/index')}">
            标题或内容:
            <input type="text" class="form-control" name="keyword" style="width: 160px;" value="{:input('request.keyword/s','')}" placeholder="请输入标题或内容">
            时间:
		    <input type="text" class="form-control js-bootstrap-datetime" name="start_time" value="{$start_time|default=''}" style="width: 160px;" autocomplete="off">-
		    <input type="text" class="form-control js-bootstrap-datetime" name="end_time" value="{$end_time|default=''}" style="width: 160px;" autocomplete="off">
            <input type="submit" class="btn btn-primary" value="搜索" />
            <a class="btn btn-danger" href="{:url('notice/index')}">清空</a>
        </form>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="50">ID</th>
					<th>标题</th>
					<th>内容</th>
					<th width="140">发布时间</th>
					<th width="140">{:lang('ACTIONS')}</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="vo">
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.title}</td>
						<td>{:strip_tags(htmlspecialchars_decode($vo.content))}</td>
						<td>{:date('Y-m-d H:i',$vo.create_time)}</td>
						<td>
							<a class="btn btn-xs btn-primary" href='{:url("notice/edit",array("id"=>$vo["id"]))}'>{:lang('EDIT')}</a>
							<a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('notice/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
						</td>
					</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>